package com.spcloud.demo.freemarker;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author cuiyh9
 * @date 2020/5/19
 */
@Controller
@RequestMapping("/fm")
public class HelloController {

    @RequestMapping("/hello")
    public String hello(Map<String, Object> map) {
        map.put("name", "cc");
        return "hello";
    }
}
